package day0803;

public class solution01 {
    int x=12321;

    boolean method(int x) {
        int num=0;
        if (x<0)
            return false;
        else {
            while(x!=0){
                int pop=x%10;
                if (num>Integer.MAX_VALUE/10||(num==Integer.MAX_VALUE/10&&pop>7))
                {return false;}
                num=num*10+pop;
                x/=10;
            }
            if (x==num)
                return false;
        }
        return true;
    }
}
